# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=httpry
pkgver=0.1.8
pkgrel=2
pkgdesc="A packet sniffer designed for HTTP traffic"
# Sources at https://github.com/jbittel/httpry/
url="https://dumpsterventures.com/jason/httpry/"
arch="all"
license="GPL-2.0"
makedepends="libpcap-dev"
subpackages="$pkgname-doc"
source="https://github.com/jbittel/httpry/archive/httpry-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

build() {
	make
}

package() {
	install -m755 -D "$builddir"/$pkgname \
		"$pkgdir"/usr/sbin/$pkgname
	install -m644 -D "$builddir"/$pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1
}

sha512sums="
d242d5bd60296f1a5836c3c9449c732a77eeda69c103718e75debfeb97d528b87bf895312883f194f0a35c37c1d59e95086b1f7dd8f3ae8627428657d49cebed  httpry-0.1.8.tar.gz
"
